#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>

int main()
{
	int m, d;
	scanf("%d%*c%d",&m,&d);
	printf("month = %d\nday = %d\n", m, d);
	return 0;
}